import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    isLogin:false,//是否登录，false为未登录
    userInfo:{}//存放用户信息
  },
  getters:{
  
  },
  mutations: {
	modifyLogin(state,payload){
		state.isLogin=payload.isLogin
		state.userInfo=payload.userInfo
		// console.log(state.userInfo)
	}
  },
  actions: {
  },
  modules: {
  }
})
export default store
